package com.linkwechat.wecom.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.math.BigDecimal;

/**
 * 企微客服账号对象 wework_kf_account
 * 
 * @author ruoyi
 * @date 2022-02-17
 */
@ApiModel
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("wework_kf_account")
public class WeworkKfAccount implements Serializable {

private static final long serialVersionUID=1L;


    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 客服账号ID */
    @ApiModelProperty("客服账号ID")
    @TableField(value = "open_kfid")
    private String openKfid;

    /** 客服账号名称 */
    @ApiModelProperty("客服账号名称")
    @TableField(value = "kf_account_name")
    private String kfAccountName;

    /** 创建时间 */
    @ApiModelProperty("创建时间")
    @TableField(value = "create_time")
    private Date createTime;

    /** 接待人数量 */
    @ApiModelProperty("接待人数量")
    @TableField(value = "service_num")
    private Integer serviceNum;

    /** 场景值 */
    @ApiModelProperty("场景值")
    @TableField(value = "scene")
    private String scene;

    /** 账号状态 */
    @ApiModelProperty("账号状态")
    @TableField(value = "state")
    private Integer state;

    /** 同步标志位 */
    @ApiModelProperty("同步标志位")
    @TableField(value = "sync_flag")
    private Integer syncFlag;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
